//
//  AYMVisitorView.m
//  QuickCure
//
//  Created by apple on 16/5/5.
//  Copyright © 2016年 ayumi. All rights reserved.
//

//define this constant if you want to use Masonry without the 'mas_' prefix
#define MAS_SHORTHAND

//define this constant if you want to enable auto-boxing for default syntax
#define MAS_SHORTHAND_GLOBALS

#import "Masonry.h"

#import "AYMVisitorView.h"
#import "AYMHeadLoginView.h"

@implementation AYMVisitorView

- (instancetype)initWithFrame:(CGRect)frame{
    
    if (self = [super initWithFrame:frame]) {
        
        [self setupUI];
    }
    
    return self;
}

# pragma mark -
# pragma mark 初始化界面
- (void) setupUI{
    
    [self setSubViews];
    [self setSubViewsFrame];
}


- (void) setSubViews {
    
    self.backgroundColor = [UIColor lightGrayColor];
    
//    自定义顶部的登录视图
    AYMHeadLoginView *headLogin = [[AYMHeadLoginView alloc] init];
    
    [self addSubview:headLogin];
//    顶部登录视图的约束
    [headLogin makeConstraints:^(MASConstraintMaker *make) {
        
        make.centerX.equalTo(self);
        make.height.equalTo(100);
        make.width.equalTo(self.frame.size.width);
        
    }];
    
}


- (void) setSubViewsFrame {
    
    
}

@end
